package com.lqfan.autoAnswerQ.model.reportCard;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zml
 * @since 2020-05-04
 */
@TableName("reportCard")
@Data
public class ReportCard extends Model<ReportCard> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;

    @TableField("questionId")
    private String questionId;

    @TableField("score")
    private String score;

    @TableField("info")
    private String info;

    @TableField("createTime")
    private LocalDateTime createTime;

    @TableField("name")
    private String name;

    @TableField("userId")
    private String userId;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReportCard{" +
                "id='" + id + '\'' +
                ", questionId='" + questionId + '\'' +
                ", score='" + score + '\'' +
                ", info='" + info + '\'' +
                ", createTime=" + createTime +
                ", name='" + name + '\'' +
                ", userId='" + userId + '\'' +
                '}';
    }
}
